package org.examplexx.mytestwebapplication.pojo;

import lombok.Data;

@Data
public class Result {
   private int code;
   private String msg;
   private Object data;
   public void success() {
       this.code = 1;
       this.msg = "success";
   }
   public void fail() {
       this.code = 0;
       this.msg = "fail";
   }
   public void success(Object data) {
       this.data = data;
       this.code = 1;
       this.msg = "success";
   }
}
